package com.srd.phone.activity;

import android.annotation.TargetApi;
import android.os.Build;
import android.os.Bundle;
import android.view.View;

import com.shengrongdai.srd.R;

/**
 * 借款管理
 */
public class LoanManageActivity extends BaseActivity implements  View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loan_manage);

        initView();
        initData();
    }

    @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    public void initView() {
        tv_common_title.setText("借款管理");

        findViewById(R.id.rl_audit_loan).setOnClickListener(this);
        findViewById(R.id.rl_tender_loan).setOnClickListener(this);
        findViewById(R.id.rl_succeed_loan).setOnClickListener(this);
        findViewById(R.id.rl_refund_detail).setOnClickListener(this);
    }

    public void initData() {}

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

            case R.id.rl_audit_loan:   // 审核中的借款
                gotoActivity(AuditLoanActivity.class);
                break;
            case R.id.rl_tender_loan:   // 招标中的借款
                gotoActivity(TenderLoanActivity.class);
                break;
            case R.id.rl_succeed_loan:   // 成功的借款
                gotoActivity(SucceedLoanActivity.class);
                break;
            case R.id.rl_refund_detail:   // 还款明细
                gotoActivity(RefundDetailActivity.class);
                break;
        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}